package top.hyz.hrm;

public enum ErrorCode {
    //公司名不可为空
    COMPANY_NOT_EMPTY_100("公司名称不可为空",100),
    COMPANY_ADDRESS_NOT_EMPTY_101("公司地址不可为空", 101),
    COMPANY_UNIFY_THE_SOCIAL_CREDIT_CODE_NOT_EMPTY_102("公司地址不可为空", 102),
    COMPANY_LOGO_NOT_EMPTY_103("公司LOGO必须上传", 103),

    EMPLOYEE_USERNAME_NOT_EMPTY_104("员工账号不可为空",104),
    EMPLOYEE_PASSWORD_NOT_EMPTY_105("员工账户密码不可为空",105),
    EMPLOYEE_TEL_NOT_EMPTY_106("手机号不可为空",106),
    EMPLOYEE_EMAIL_NOT_EMPTY_107("邮箱不可为空",107),

    MEAL_NOT_EMPTY_108(" 套餐类型不可为空", 108),
    TENANT_TYPE_NOT_EMPTY_109("租户类型不可为空", 109),

    ILLEGAL_BUSINESS_201("统一社会信用代码不合法",201),
    ILLEGAL_TEL_202("手机号不合法",202),
    ILLEGAL_EMAIL_203("邮箱不合法",203),

    REPEATED_EMPLOYEE_NAME_301("员工账号不可重复",301),
    REPEATED_TENANT_NAME_302("公司名不可重复",302),

    COURSE_ID_NOT_EMPTY_401("请选择要上线课程",401),
    COURSE_NOT_EMPTY_402("该课程不存在，请刷新页面后再试",402),


    COURSE_TYPE_ID_NOT_EMPTY_501("请选择课程分类", 501),
    COURSE_NOT_EMPTY_502("该分类不存在，请重新选择", 502);

    private String msg;
    private int code;

    ErrorCode(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return "msg:"+ msg+", code:"+code;
    }


}